<template>
	<view class="p10">
	 
		<view class="center">
			{{title}}
		</view>
		<view class="mt-30 size-22 " style="border-bottom: 1px solid #E5E5E5;height: 70rpx;">
			{{create_time}}
		</view>
		<view class="center size-28 fw mt-20">
			{{desc}}
		</view>
			<view class="size-22 mt-20" style="overflow: hidden;">
				<view class="" v-html="content"></view>
			   <!-- <u-parse :content="content" @preview="preview" @navigate="navigate" ></u-parse> -->
			</view>
		</view>

	</view>
</template>
<script>
	import uParse from '@/components/u-parse/u-parse.vue'
	export default {
		 components: {
		    uParse
		  },
		data() {
			return {
				content: '',
				title: '',
				create_time: '',
				desc: "",
				content: '',
			}
		},
		onPullDownRefresh() {
			setTimeout(function () {
				uni.stopPullDownRefresh();
				
			}, 1000);
			this.$http('api/index/noticeDetail', {
				id: this.id
			}).then(res => {
				console.log(res);
				this.title = res.title
				this.create_time = res.create_time
				this.desc = res.desc
				this.content = res.content
			});
		},
		onLoad(id) {
			// console.log(id.id);
			this.id = id.id
			this.$http('api/index/noticeDetail', {
				id: this.id
			}).then(res => {
				console.log(res);
				this.title = res.title
				this.create_time = res.create_time
				this.desc = res.desc
				this.content = res.content
			});
		},
		onShow() {
			this.inye()

		},
		methods: {
			inye() {

			}
		}
	}
</script>
<style lang="less" scoped>

</style>
